<?php
class Comment{		
	static function addNewComment($user_id){
		DB::query('update user set total_new_comment = total_new_comment + 1 where id='.$user_id);
		User::updateUserCache($user_id);
		
	}
	
	static function resetRezoComment($user_id){
		DB::query('update user set total_new_comment = 0 where id = '.$user_id);
		User::updateUserCache($user_id);
	}
}
?>